/**
 *  Copyright 2011 Pavlov Dm.
 *  Licensed under the MIT License
 */


package org.motiv.core;

import org.motiv.core.CacheException;
import org.motiv.config.CacheConfiguration;

import org.apache.log4j.Logger;
/**
 * A utility class which create cache from configure.
  * @author Pavlov Dm
 */
public final class CacheFactory {
	/** Logger instance */
	public static final Logger LOG=Logger.getLogger(CacheFactory.class);
	
    /**
     * Constructor.
     */
    private CacheFactory() { }

    /**
     * Create cache from configure.
     */
    public static Cache create(CacheConfiguration configuration) throws CacheException {
		return new Cache(configuration);
    }
}
